package com.example.demo.service.impl;

import com.example.demo.entity.Instrument;
import com.example.demo.entity.Student;
import com.example.demo.mapper.InstrumentMapper;
import com.example.demo.service.InstrumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InstrumentImpl implements InstrumentService {
    @Autowired
    InstrumentMapper mapper;
    @Override
    public Instrument queryInstrumentById(String id){
        return mapper.queryInstrumentById(id);
    }
    @Override
    public String queryNameById(String id) {
        return mapper.queryNameById(id);
    }
    @Override
    public List<Instrument> queryAllInstrument() {
        return mapper.queryAllInstrument();
    }
}
